Release 10.1A: OpenEdge Development:
ProDataSets


Locating rows in the before- and after-tables

There is a pair of complementary attributes for the before- and after-table buffers that point to the record in one table that corresponds to the record in the other table:

These attributes allow you, for example, to execute a static FIND statement with a where-clause such as WHERE ROWID(ttBeforeTable) = ttAfterBuffer:BEFORE-ROWID, or a dynamic FIND-BY-ROWID method, to retrieve the buffer handle for the corresponding record in the other table, to do comparisons of field values.

The ROW-STATE, AFTER-ROWID, and BEFORE-ROWID attributes are all read-only.

There are also attributes to point back and forth between the temp-tables themselves:

These attributes are also read-only.

In addition, you can point directly from the buffer for one table to the buffer for the other using these attributes on a buffer handle:

When you pass a ProDataSet as a parameter remotely, any before-tables associated with its temp-tables are automatically and transparently marshaled along with it. If passed locally by value, then the before-tables are copied along with the after-tables. If passed locally BY-REFERENCE, then all references to the before-table are available to the procedure receiving the ProDataSet.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095